import java.util.Scanner;

public class Main1672 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = a + b;
        if (x >10) {
            System.out.println("tree");
        } else if (x<10){
            System.out.println("water");
        }else if(x==10&&b>a){
            System.out.println("tea");
        }
    }
}